#include "EyeTracker.h"
#include "HeadTracker.h"

int main(){

EyeTracker eye_tracker = EyeTracker::EyeTracker(); 
int init_eye = eye_tracker.init();

HeadTracker head_tracker = HeadTracker::HeadTracker();
head_tracker.set_Max_HSV(130, 240, 124);
head_tracker.set_Min_HSV(104, 178, 70);
head_tracker.set_thresh_size(70);
head_tracker.init();

while(true)
{

	EyeTracker::return_struct result = eye_tracker.get_coordinate();
	CvRect head_rect = head_tracker.get_rectangle();

	std::cout << "Eye Result " << result.x << " , " << result.y << std::endl;
	std::cout << "Head Result " << head_rect.x << " , " << head_rect.y << std::endl;

}

}